import request from '@/utils/request'

export function page(params) {
    return request({
        url: '/order/shop/list',
        method: 'get',
        params
    })
}

export function take_order(id) {
    return request({
        url: `/order/shop/take/${id}`,
        method: 'post'
    })
}
export function ready_order(id) {
    return request({
        url: `/order/shop/ready/${id}`,
        method: 'post'
    })
}
export function finish_order(id) {
    return request({
        url: `/order/shop/finish/${id}`,
        method: 'post'
    })
}

export function order_detail(id) {
    return request({
        url: `/order/shop/detail/${id}`,
        method: 'get'
    })
}

export function order_cancel(params) {
    return request({
        url: `/order/shop/cancel`,
        method: 'put',
        params
    })
}

